<template>
  <el-button type="primary" @click="handleClick">打乱顺序</el-button>
  <span v-for="item in list" :key="item">{{ item }}</span>
  <input type="text" v-focus />
</template>
<script setup lang="ts">
import { shuffle } from 'lodash-es'
import { ref } from 'vue'
const list = ref(['重庆', '成都', '四川', '安岳'])
function handleClick() {
  list.value = shuffle(list.value)
}
</script>
